<?php
require_once(dirname(dirname(__FILE__)) . '/app.php');
need_login();
$action = strval($_GET['action']);
$order_id = abs(intval($_GET['id']));


//新增客户弹窗
if ( 'reset_token' == $action) {	
	$user_id = intval($_GET['user_id']);
	Table::UpdateCache('user', $user_id, array(
		'token' => mt_rand(100000000,999999999).mt_rand(100000000,999999999), 
	));
	json(array(
		array('data' => "重置 Token 成功！", 'type'=>'alert'),
		array('data' => null, 'type'=>'refresh'),
	), 'mix');
}


elseif ( 'dialog_add_keyword' == $action) {
	include template('ajax_dialog_add_keyword');
}











